package com.group.yztcedu.playlive.main.home.loadmore;

import com.group.yztcedu.playlive.bean.LoadMoreBean;
import com.group.yztcedu.playlive.utils.HttpUtils;

import java.util.HashMap;

public class LoadMoreModel implements LoadMoreContract.Model {
    private String name;

    public LoadMoreModel(String name) {
        this.name = name;
    }

    @Override
    public void getLoadMoreData(HashMap<String, String> params, HttpUtils.HttpCallBack<LoadMoreBean> callBack) {
        if ("穿越火线".equals(name)) {
            HttpUtils.getInstance().getFireData(params, callBack);
        } else if ("我的世界".equals(name)) {
            HttpUtils.getInstance().getWorldData(params, callBack);
        } else if ("王者荣耀".equals(name)) {
            HttpUtils.getInstance().getKingData(params, callBack);
        } else if ("球球大作战".equals(name)) {
            HttpUtils.getInstance().getBallData(params, callBack);
        } else if ("最热房间".equals(name)) {
            HttpUtils.getInstance().getHotRoomData(params, callBack);
    }
}
}
